function getselfplaymethodlist(offset,limit,type){
	console.log('调用函数：'+'offset='+offset+',limit='+limit+',type='+type);
	var selfplayingmethod_city='';
	//搜索条件
	$$('.selfplayingmethodcity a.active').each(function(){
		selfplayingmethod_city+=$$(this).data('id')+'|';
	});
	var selfplayingmethod_type = $$('.selfplayingmethodtype a.active').data('id');
	var selfplayingmethod_sort = $$('.selfplayingmethodsort a.active').data('id');	
	//收起subnav
	console.log(selfplayingmethod_city,selfplayingmethod_type,selfplayingmethod_sort);
	$$("#selfplayingmethodlist").removeClass('with-shadow');
	if ($$('.selfplayingmethodtype').hasClass('grade-w-roll')){
        $$('.selfplayingmethodtype').removeClass('grade-w-roll');
    };
    if ($$('.selfplayingmethodsort').hasClass('grade-w-roll')){
        $$('.selfplayingmethodsort').removeClass('grade-w-roll');
    };
    if ($$('.selfplayingmethodcity').hasClass('grade-w-roll')){
        $$('.selfplayingmethodcity').removeClass('grade-w-roll');
    };
    //刷新列表
    $$.getJSON(url_get_selfplayingmethodlist, {
        cityId:selfplayingmethod_city,
        offset:offset,
        limit:limit,
        type:selfplayingmethod_type,
        order:selfplayingmethod_sort
    }, function (ajaxresult) {
        console.log(ajaxresult);
        if(ajaxresult.code==1){
        	if((ajaxresult.data).length < limit){
        		//如果项目不够，解绑滚动刷新事件
                myApp.detachInfiniteScroll($$('#selfplayingmethodlist .infinite-scroll'));
                $$('#selfplayingmethodlist .infinite-scroll-preloader').hide();
            }else{
            	//如果项目足够，绑定滚动刷新事件
                myApp.attachInfiniteScroll($$('#selfplayingmethodlist .infinite-scroll'));
                $$('#selfplayingmethodlist .infinite-scroll-preloader').show();     
            }
        	//将数据写入模板
        	var data_selfplayingmethodlist = ajaxresult.data;
            var html = myApp.playSelfItemTemplate(data_selfplayingmethodlist);
        
			if(type=='refresh'){
    		    $$('#selfplayingmethodlist .div_selfplayingmethodcontent').html(html);
    		    //更新last load index
      			var lastIndex=$$('.div_selfplayingmethodcontent .selfplayitem').length;
				$$("input[name='selfplayingmethod_lastIndex']").val(lastIndex);
			}else if(type=='append'){
    			$$('#selfplayingmethodlist .div_selfplayingmethodcontent').append(html);
    			//更新last load index
    			var lastIndex=$$('.div_selfplayingmethodcontent .selfplayitem').length;
    			$$("input[name='selfplayingmethod_lastIndex']").val(lastIndex);
    		}		
		}else{
			ajaxfail(ajaxresult.msg);
			$$('#playingmethodlist .div_playingmethodcontent').html('');
		}
    });
}